package com.laolang.shop.modules.product.logic.admin;

import com.laolang.shop.common.core.domain.Page;
import com.laolang.shop.modules.product.entity.ProductCategory;
import com.laolang.shop.modules.product.pojo.category.admin.dto.ProductCategoryAdminEditDto;
import com.laolang.shop.modules.product.pojo.category.admin.vo.ProductCategoryAdminTreeVo;

import java.util.List;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/3 0:58
 */
public interface ProductCategoryAdminLogic {
    List<ProductCategoryAdminTreeVo> loadTreeLazy(Long parentId);

    Page<ProductCategory> page(Integer page, Integer size, Long parentId);

    Boolean add(ProductCategoryAdminEditDto dto);

    Boolean edit(ProductCategoryAdminEditDto dto);

    Boolean del(Long id);
}
